package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.Athlete;
import com.ruoyi.system.mapper.AthleteMapper;
import com.ruoyi.system.service.IAthleteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Ly lilongfei
 * @date 2024/8/26
 * @Description
 */
@Service
public class AthleteService implements IAthleteService {

    @Autowired
    private AthleteMapper athleteMapper;

    @Override
    public List<Athlete> findAthleteByCoach(Integer couchId) {
        return athleteMapper.findAthleteByCoachId(couchId);
    }
}
